package com.ming_za.odupdaterserver.core.utils.account;

import lombok.Getter;

public enum AccountRE {
    SUCCESS(0,"成功"),
    /**
     *token失效
     */
    TOKEN_FAILURE(100,"身份验证已失效"),
    /**
     * 账号已注册
     */
    ACCOUNT_REGISTERED(101,"账号已注册"),
    /**
     * 当前服务器无法远程登录
     */
    REMOTE_LOGIN_ERROR(102,"当前服务器已禁止远程登录"),
    /**
     * 账号未注册
     */
    ACCOUNT_UNREGISTERED(103,"该账号未注册"),
    /**
     * 账号或密码错误
     */
    WRONG_ACCOUNT_OR_PASSWORD(104,"账号或密码错误"),
    /**
     * 没有权限执行该操作
     */
    NO_PERMISSION(105,"没有权限执行该操作"),
    /**
     * 登录已锁定
     */
    LOGIN_LOCK(106,"登录已锁定"),
    /**
     * 登录ip不允许
     */
    LOGIN_IP_NOT_ALLOW(107,"登录ip不允许"),
    ;
    final int code;
    @Getter
    final String msg;
    AccountRE(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
